<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of dbaccess
 *
 * @author Jira
 */
class Dbaccess{
    
    private static $instance = null;
    //put your code here
    private function __construct() {

    }

    public static function getInstance($dsn = null,$username = null,$passwd = null,$options = array()) {
        if(is_null(self::$instance))
            self::$instance = new PDO($dsn, $username, $passwd);
        return self::$instance;
    }

    private function __clone() {
        
    }

}
?>
